package com.internetCafes.spms.web.sys.model;

import com.alibaba.fastjson.annotation.JSONField;
import java.io.Serializable;
import java.util.Date;


/**
 * 系统配置表
 * 
 * @author Sunny
 * @email rekeeper2011@hotmail.com
 * @date 2018-11-12 22:26:42
 */
public class ConfInfo implements Serializable {

	private static final long serialVersionUID = 1L;
	
    /**
     * 本表ID
     */
	private Long id;

    /**
     * 配置类型
     */
	private String type;

    /**
     * 标识码
     */
	private String code;

    /**
     * 显示名称
     */
	private String name;

    /**
     * 具体值
     */
	private String value;

    /**
     * 描述
     */
	private String remark;

    /**
     * 排序号
     */
	private Integer sort;

    /**
     * 父节点ID
     */
	private Long parentId;

    /**
     * 状态: 0:无效; 1:有效
     */
	private Integer status;

    /**
     * 创建人ID
     */
	private Long createBy;

    /**
     * 创建时间
     */
	private Date createTime;

    /**
     * 修改人ID
     */
	private Long updateBy;

    /**
     * 修改时间
     */
	private Date updateTime;

	/**
	 * 参数所属模块标签
	 * 在证书专业模块添加该字段用于区分证书模块
	 */
	private String moduleTag;


	public ConfInfo(){}

	public ConfInfo(Long id, String name, String value) {
		this.id = id;
		this.name = name;
		this.value = value;
	}

	public ConfInfo(String type, String name, String value, Integer sort) {
		this.type = type;
		this.name = name;
		this.value = value;
		this.sort = sort;
		this.createTime = new Date();
	}

	@JSONField(name = "id")
	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	@JSONField(name = "type")
	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}

	@JSONField(name = "code")
	public void setCode(String code) {
		this.code = code;
	}

	public String getCode() {
		return code;
	}

	@JSONField(name = "name")
	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	@JSONField(name = "value")
	public void setValue(String value) {
		this.value = value;
	}

	public String getValue() {
		return value;
	}

	@JSONField(name = "remark")
	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getRemark() {
		return remark;
	}

	@JSONField(name = "sort")
	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getSort() {
		return sort;
	}

	@JSONField(name = "parent_id")
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Long getParentId() {
		return parentId;
	}

	@JSONField(name = "status")
	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return status;
	}

	@JSONField(name = "create_by")
	public void setCreateBy(Long createBy) {
		this.createBy = createBy;
	}

	public Long getCreateBy() {
		return createBy;
	}

	@JSONField(name = "create_time")
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	@JSONField(name = "update_by")
	public void setUpdateBy(Long updateBy) {
		this.updateBy = updateBy;
	}

	public Long getUpdateBy() {
		return updateBy;
	}

	@JSONField(name = "update_time")
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public String getModuleTag() {
		return moduleTag;
	}

	public void setModuleTag(String moduleTag) {
		this.moduleTag = moduleTag;
	}
}
